import Taro , { Component } from '@tarojs/taro';
import { View, Text , Button, WebView} from '@tarojs/components';

export default class Index extends Component {

   config = {
       navigationBarTitleText: ''
  }

  state = {
    webViewUrl: ''
  }

  componentWillMount () {
    this.setState({
      webViewUrl: this.$router.params.url
    })
  }
  componentDidMount () {}
  componentWillReceiveProps (nextProps,nextContext) {}
  componentWillUnmount () {}
  componentDidShow () {}
  componentDidHide () {}
  componentDidCatchError () {}
  componentDidNotFound () {}
  render() {
    const {webViewUrl} = this.state
    return (
      <View>
        <WebView src={webViewUrl} />
      </View>
    );
  }
}
